import axios from 'axios'
import { getToken } from '@/utils/auth'
export function upload(url,param) {
    let config = {
        headers: {
            'Content-Type': 'multipart/form-data',
        },
    }
    config.headers['Authorization'] = "Bearer " + getToken()
    return axios.post(url,param,config);
  }